<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/3/10
  Time: 20:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="com.graduation.lastproject.entity.HotelInfo" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
    HotelInfo hotelInfo= (HotelInfo) request.getAttribute("hotelInfo");
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:set var="ctx" value="<%=basePath%>"  />
<c:set var="hotelInfo" value="<%=hotelInfo%>" />
<html>
<head>
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrapValidator.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/static/toastr/toastr.min.css">
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <script  src="/static/bootstrap/js/bootstrapValidator.js"></script>
    <script src="/static/toastr/toastr.min.js"></script>
   <%-- <script src="/static/js/business/uploadInfo/uploadInfo.js"></script>      &lt;%&ndash;调用上传js 验证input&ndash;%&gt;--%>
    <script src="/static/js/business/uploadInfoEdit/uploadInfoEdit.js"></script>
    <title></title>
    <style type="text/css">
        .navbar{
            background-color: #FFE4C4;
        }
        .col-md-1{
            padding-top: 12px;
            padding-right: 0px;
        }
        .col-md-2{
            padding: 7px 0px 0px  15px;
        }
        .col-md-3{
            padding-top: 7px;
            padding-right: 0px;
        }
        .col-md-5{
            padding-top: 7px;
            padding-right: 0px;
        }
        img{
            width: 34px;
            height: 34px;
        }
        /*只显示纵向滑动条*/
        html { overflow-x: hidden; overflow-y: auto; }
        /*x √ 调整位置*/
        .form-control-feedback{
            line-height: 45px;
        }
        /*  !*调整左侧汉字位置*!
          .control-label{
              text-align: center;
          }*/
    </style>
    <script>
        var ctx='${ctx}';
        var hotelType='${hotelInfo.hotelType}';
        var hotelRoomType='${hotelInfo.hotelRoomType}';
        var hotelBrand='${hotelInfo.hotelBrand}';
        var serviceFacilities='${hotelInfo.serviceFacilities}';
        var breakfast='${hotelInfo.breakfast}';
        var businessName='${businessName}';
        var reason='${hotelInfo.reason}';
        var msg='${msg}';
        console.info("登录名:"+businessName+"---酒店类型:"+hotelType+"---酒店房间类型:"+hotelRoomType+"-----上传情况"+msg +"-------审核理由:"+reason)
    </script>
</head>
<body>
<nav class="navbar" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" <%--href="home"--%>>
                <span class="glyphicon glyphicon-user" aria-hidden="true" ></span>
            </a>
            <span class="navbar-brand">欢迎查看酒店信息</span>
        </div>
        <%--<div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="${ctx}/business/index">首页</a>
                </li>
            </ul>
        </div>--%>
    </div>
</nav>
<form class="form-horizontal center-block" role="form" id="yanzheng">
    <input type="hidden" name="id" value="${hotelInfo.id}">
    <div class="form-group ">
        <label class="col-md-3 control-label" for=""><img src="/static/img/uplodeInfo/hotelName.png" />酒店名字:</label>
        <div class="col-md-5">
            <input class="form-control" id="" name="hotelName"  type="tel" placeholder="可用作搜索" autocomplete="off" value="${hotelInfo.hotelName}"/>
        </div>
    </div>

    <div class="form-group ">
        <label class="col-md-3 control-label" for=""><img src="/static/img/uplodeInfo/hotelCity.png" />所在城市:</label>
        <div class="col-md-5">
            <input class="form-control" id="" name="hotelCity" type="text" placeholder="请选择所在城市" autocomplete="off" value="${hotelInfo.hotelCity}"/>
        </div>
    </div>

    <div class="form-group ">
        <label class="col-md-3 control-label" for=""><img src="/static/img/uplodeInfo/hotelAddress.png" />酒店地址:</label>
        <div class="col-md-5">
            <input class="form-control" id="" name="hotelAddress" type="text" placeholder="请具体到街号" autocomplete="off" value="${hotelInfo.hotelAddress}"/>
        </div>
    </div>

    <div class="form-group ">
        <label class="col-md-3 control-label" for=""><img src="/static/img/uplodeInfo/hotelPhone.png" />酒店电话:</label>
        <div class="col-md-5">
            <input class="form-control" id="" name="hotelPhone" type="text" placeholder="请填写有效电话" autocomplete="off" value="${hotelInfo.hotelPhone}"/>
        </div>
    </div>

    <div class="form-group ">
        <label class="col-md-3 control-label" for=""><img src="/static/img/uplodeInfo/hotelDes.png" />酒店介绍:</label>
        <div class="col-md-5">
            <input rows="3" class="form-control" id="hotelDescription" name="hotelDescription" type="text" placeholder="请输入酒店介绍" autocomplete="off" value="${hotelInfo.hotelDescription}">
            </input>
        </div>
    </div>


    <div class="form-group">
        <label class="col-md-3 control-label"> <img src="/static/img/uplodeInfo/hotelType.png" />酒店类型:</label>
        <div class="col-md-1">
            <input  type="radio" name="hotelType" value="1" id="jj" /> 经济型
        </div>
        <div class="col-md-1">
            <input  type="radio" name="hotelType" value="2" id="gy"/> 公寓型
        </div>
        <div class="col-md-1">
            <input  type="radio" name="hotelType" value="3" id="sw"/> 商务型
        </div>
        <div class="col-md-1">
            <input  type="radio" name="hotelType" value="4" id="ql"/> 情侣酒店
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label"><img src="/static/img/uplodeInfo/hotelRoomType.png" />酒店房型:</label>
        <div class="col-md-1">
            <input  type="checkbox" name="hotelRoomType" value="1" id="big" /> 大床房
        </div>
        <div class="col-md-1">
            <input  type="checkbox" name="hotelRoomType" value="2" id="double" /> 双床房
        </div>
        <div class="col-md-1">
            <input  type="checkbox" name="hotelRoomType" value="3" id="circle"/> 商务房
        </div>
        <div class="col-md-1">
            <input  type="checkbox" name="hotelRoomType" value="4" id="Couples"/> 情侣主题
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label"><img src="/static/img/uplodeInfo/hotelBrand.png" />酒店品牌:</label>
        <div class="col-md-1">
            <input  type="radio" name="hotelBrand" value="1" /> 阿娇
        </div>
        <div class="col-md-1">
            <input  type="radio" name="hotelBrand" value="2"/> 言芳
        </div>
        <div class="col-md-1">
            <input  type="radio" name="hotelBrand" value="3"/> 玉兰
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label"><img src="/static/img/uplodeInfo/service.png" />服务设施:</label>
        <div class="col-md-1">
            <input  type="checkbox"  name="serviceFacilities" value="1" />暖气
        </div>
        <div class="col-md-1">
            <input  type="checkbox"  name="serviceFacilities" value="2" />停车场
        </div>
        <div class="col-md-1">
            <input  type="checkbox"  name="serviceFacilities" value="3"/>投影设备
        </div>
        <div class="col-md-1">
            <input  type="checkbox"  name="serviceFacilities" value="4"/>洗衣机
        </div>
        <div class="col-md-1">
            <input  type="checkbox"  name="serviceFacilities" value="5"/>浴缸
        </div>

    </div>

    <div class="form-group">
        <label class="col-md-3 control-label"><img src="/static/img/uplodeInfo/breakfast.png" />提供早餐:</label>
        <div class="col-md-1">
            <input type="radio" name="breakfast" value="1" /> 是
        </div>
        <%--<div class="col-md-1">
            <input type="radio" name="breakfast" value="2"/> 否
        </div>--%>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label"><img src="/static/img/uplodeInfo/minPrice.png" />最低消费:</label>
        <div class="col-md-5">
            <input type="text" class="form-control"  name="hotelMinPrice" id="minPrice"  placeholder="请输入酒店当天最低消费" autocomplete="off" value="${hotelInfo.hotelMinPrice}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label"><img src="/static/img/uplodeInfo/jwd.png" />经 &nbsp 纬度:</label>
        <div class="col-md-2">
            <input type="text" class="form-control"  name="longitude"  id="longitude" placeholder="经度(百度查询经度)" autocomplete="off" value="${hotelInfo.longitude}"/>
        </div>
        <div class="col-md-2">
            <input type="text" class="form-control"  name="latitude"  id="latitude" placeholder="纬度(百度查询纬度)" autocomplete="off" value="${hotelInfo.latitude}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label"><img src="/static/img/uplodeInfo/roomNum.png" />房间数量:</label>
        <div class="col-md-2">
            <input type="text" class="form-control"  name="bigHomeNum"  id="" placeholder="大床" autocomplete="off" value="${hotelInfo.bigHomeNum}"/>
        </div>
        <div class="col-md-2">
            <input type="text" class="form-control"  name="douHomeNum"   id="" placeholder="双床" autocomplete="off" value="${hotelInfo.douHomeNum}"/>
        </div>
        <div class="col-md-2" style="width: 160px">
            <input type="text" class="form-control"  name="circleHomeNum"  id="" placeholder="商务" autocomplete="off" value="${hotelInfo.circleHomeNum}"/>
        </div>
        <div class="col-md-2" style="width: 160px">
            <input type="text" class="form-control"  name="couplesHomeNum"   id="" placeholder="情侣" autocomplete="off" value="${hotelInfo.circleHomeNum}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label"><img src="/static/img/uplodeInfo/roomNum.png" />房间价格:</label>
        <div class="col-md-2">
            <input type="text" class="form-control"  name="bigHomePri"  id="" placeholder="￥大床" autocomplete="off" value="${hotelInfo.bigHomePri}"/>
        </div>
        <div class="col-md-2">
            <input type="text" class="form-control"  name="douHomePri"   id="" placeholder="￥双床" autocomplete="off" value="${hotelInfo.douHomePri}"/>
        </div>
        <div class="col-md-2" style="width: 160px">
            <input type="text" class="form-control"  name="circleHomePri"  id="" placeholder="￥商床" autocomplete="off" value="${hotelInfo.circleHomePri}"/>
        </div>
        <div class="col-md-2" style="width: 160px">
            <input type="text" class="form-control"  name="couplesHomePri"   id="" placeholder="￥情侣" autocomplete="off" value="${hotelInfo.couplesHomePri}"/>
        </div>
    </div>

    <div class="form-group" id="edit">
        <div class="col-sm-5">
            <input class="btn btn-default pull-right" type="button" id="btn-edit"style="width: 150px;background-color: #337ab7;color: whitesmoke" value="修改" />
        </div>
        <div class="col-sm-3">
            <input class="btn btn-default pull-left" type="button" id="btn-picInfo" style="width: 150px" value="查看图片" />
        </div>
    </div>

</form>
</body>
</html>
